package com.five.community.service;

import com.five.community.bean.Village;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface VillageService {
    //查询所有小区表
    List<Village> selectAll() throws Exception;
    //根据小区名字查询小区Id
    long selectIdByName(String name) throws Exception;
    //根据小区名字查询小区信息
    List<Village> selectByName(String name) throws Exception;
    //添加小区操作
    void insert(Village village) throws Exception;
    //通过Id查询小区信息
    Village selectById(long id) throws Exception;
    //编辑更新小区信息
    void update(Village village) throws Exception;
    //删除小区根据id
    void delete(long id) throws Exception;
    //获取分页信息
    PageInfo<Village> getPageInfo(int pageNum,int pageSize) throws Exception;
}
